import req from "@/utils/request";
const baseURL = process.env.VUE_APP_BASE_URL;
export function getSchedulesList(params) {
  return req({
    method: "get",
    url: baseURL + "/superlink/api/schedules",
    params
  });
}
// 添加
export function postSchedules(params) {
  return req({
    method: "post",
    url: baseURL + "/superlink/api/schedules",
    data: params
  });
}
export function putSchedules(params) {
  return req({
    method: "put",
    url: baseURL + "/superlink/api/schedules/" + params.token,
    data: params
  });
}
export function delSchedules(token) {
  return req({
    method: "delete",
    url: baseURL + "/superlink/api/schedules/" + token
  });
}

export function getJobsList(params) {
  return req({
    method: "get",
    url: baseURL + "/superlink/api/jobs",
    params
  });
}
// 添加
export function postJobs(params) {
  return req({
    method: "post",
    url: baseURL + "/superlink/api/jobs",
    data: params
  });
}
export function putJobs(params) {
  return req({
    method: "put",
    url: baseURL + "/superlink/api/jobs/" + params.token,
    data: params
  });
}
export function delJobs(token) {
  return req({
    method: "delete",
    url: baseURL + "/superlink/api/jobs/" + token
  });
}
